<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="6">
        <!-- 第1个card -->
        <el-card>
          <Detail title="总销售额" count="￥126560">
            <!-- 图表插槽 -->
            <template slot="charts">
              <span>周同比&nbsp;&nbsp;56.67%<i class="el-icon-top" style="color:red;"></i></span>&nbsp;&nbsp;
              <span>日同比 19.16%<i class="el-icon-bottom" style="color:green;"></i></span>
            </template>
            <!-- 底部插槽 -->
            <template slot="footer">
              <span>日销售额&nbsp;￥12423</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <!-- 第2个card -->
        <el-card>
          <Detail title="访问量" count="88460">
            <!-- 图表插槽 -->
            <template slot="charts">
              <!-- 折线图 -->
              <LineChart></LineChart>
            </template>
            <!-- 底部插槽 -->
            <template slot="footer">
              <span>日访问量&nbsp;1234</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <!-- 第3个card -->
        <el-card>
          <Detail title="支付笔数" count="57499">
            <!-- 图表插槽 -->
            <template slot="charts">
              <!-- 柱状图 -->
              <BarChart></BarChart>
            </template>
            <!-- 底部插槽 -->
            <template slot="footer">
              <span>转化率&nbsp;65%</span>
            </template>
          </Detail>
        </el-card>
      </el-col>
      <el-col :span="6">
        <!-- 第4个card -->
        <el-card>
          <Detail title="运营活动效果" count="78%">
            <!-- 图表插槽 -->
            <template slot="charts">
              <!-- 进度条 -->
              <ProcessChart></ProcessChart>
            </template>
            <!-- 底部插槽 -->
            <template slot="footer">
              <span>周同比&nbsp;&nbsp;12%<i class="el-icon-top" style="color:red;"></i></span>&nbsp;&nbsp;
              <span>日同比 11%<i class="el-icon-bottom" style="color:green;"></i></span>
            </template>
          </Detail>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Detail from './Detail'
import LineChart from './LineChart'
import BarChart from './BarChart'
import ProcessChart from './ProcessChart'
export default {
  name: 'Card',
  data() {
    return {

    }
  },
  components: {
    Detail,
    LineChart,
    BarChart,
    ProcessChart
  }
}
</script>

<style></style>